package com.library.books.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.library.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.library.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 智能门禁报警对象 door_alarm_record
 *
 * @author hb
 * @date 2024-11-25
 */
@Data
@ApiModel("智能门禁报警记录")
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class DoorAlarmRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ApiModelProperty("$column.columnComment")
    private Long alarmId;

    /** 书籍id */
    @ApiModelProperty("书籍id")
    @Excel(name = "书籍id")
    private Long booksId;

    /** 期刊id */
    @ApiModelProperty("期刊id")
    @Excel(name = "期刊id")
    private Long journalId;

    /** 书籍isbn */
    @ApiModelProperty("书籍isbn")
    @Excel(name = "书籍isbn")
    private String booksIsbn;

    /** 期刊issn */
    @ApiModelProperty("期刊issn")
    @Excel(name = "期刊issn")
    private String journalIssn;

    /** 条码值 */
    @ApiModelProperty("条码值")
    @Excel(name = "条码值")
    private String barcode;

    /** 书籍名 */
    @ApiModelProperty("书籍名")
    @Excel(name = "书籍名")
    private String booksName;

    /** 书籍封面 */
    @ApiModelProperty("书籍封面")
    @Excel(name = "书籍封面")
    private String booksCoverPhoto;

    /** 索书号大分类 */
    @ApiModelProperty("索书号大分类")
    @Excel(name = "索书号大分类")
    private String booksCopyLicense;

    /** 扫描天线 */
    @ApiModelProperty("扫描天线")
    @Excel(name = "扫描天线")
    private Integer alarmAnt;

    /** 报警设备ip */
    @ApiModelProperty("报警设备ip")
    @Excel(name = "报警设备ip")
    private String alarmIp;

    /** 报警bank_data */
    @ApiModelProperty("报警bank_data")
    @Excel(name = "报警bank_data")
    private String alarmBankData;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @Excel(name = "报警时间" , dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 操作平台 */
    @Excel(name = "操作平台")
    @TableField(exist = false)
    private String operateTerrace;

}
